﻿using scripts.net;

namespace scripts.proto
{
    //同步玩家信息
    public class SyncCharacterMsg : BaseMsg
    {
        public SyncCharacterMsg()
        {
            protoName = "SyncCharacterMsg";
        }

        //位置、旋转、炮塔旋转
        public float x = 0f;
        public float y = 0f;
        public float z = 0f;
        public float ex = 0f;
        public float ey = 0f;
        public float ez = 0f;

        public float turretY = 0f;

        //服务端补充
        public string id = ""; //哪个玩家
    }

    //开火
    public class FireMsg : BaseMsg
    {
        public FireMsg()
        {
            protoName = "FireMsg";
        }

        //炮弹初始位置、旋转
        public float x = 0f;
        public float y = 0f;
        public float z = 0f;
        public float ex = 0f;
        public float ey = 0f;

        public float ez = 0f;

        //服务端补充
        public string id = ""; //哪个玩家
    }

    //击中
    public class HitMsg : BaseMsg
    {
        public HitMsg()
        {
            protoName = "HitMsg";
        }

        //击中谁
        public string targetId = "";

        //击中点	
        public float x = 0f;
        public float y = 0f;

        public float z = 0f;

        //服务端补充
        public string id = ""; //哪个玩家
        public float hp = 0; //被击中玩家血量
        public float armor = 0; //被击中玩家护甲
        public float damage = 0; //受到的伤害
    }
}